package com.hoki.zj.hrm.client;

import com.hoki.zj.hrm.utils.AjaxResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class AuthServiceClientCallBackFactory implements FallbackFactory<AuthServiceClient> {

    @Override
    public AuthServiceClient create(Throwable throwable) {
        return loginUser -> new AjaxResult().setSuccess(false).setMessage("网络异常");
    }
}
